﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Site.Models.ClanCreateModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Edit</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm(null, null, FormMethod.Post, new { enctype = "multipart/form-data" }))
   { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>CLAN</legend>
        
        <%: Html.HiddenFor(model => model.ClanId) %>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.ClanName) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ClanName)%>
            <%: Html.ValidationMessageFor(model => model.ClanName)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.ClanDescription) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ClanDescription)%>
            <%: Html.ValidationMessageFor(model => model.ClanDescription)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.ClanForumLink) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ClanForumLink)%>
            <%: Html.ValidationMessageFor(model => model.ClanForumLink)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.ClanLogo) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ClanLogo)%>
            <%: Html.ValidationMessageFor(model => model.ClanLogo)%>
            <br />
            <input id="logo_upload_file" name="logo_upload_file" type="file" />
        </div>
        
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Back to List", "Index") %>
</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="alerts" runat="server">
</asp:Content>
